import { $t } from "@/plugins/i18n";
const { VITE_HIDE_HOME } = import.meta.env;
import { bills } from "@/router/enums";
const Layout = () => import("@/layout/index.vue");

export default {
  path: "/bills/menu",
  name: "Bills",
  component: Layout,
  redirect: "/bills",
  meta: {
    icon: "ep:home-filled",
    title: $t("menus.hsbills"),
    rank: bills
  },
  children: [
    {
      path: "/bills",
      name: "Bills_Log",
      component: () => import("@/views/bills/index.vue"),
      meta: {
        title: $t("menus.hsbills_log"),
        showLink: VITE_HIDE_HOME === "true" ? false : true
      }
    },
    {
      path: "/bills/property",
      name: "Bills_Property",
      component: () => import("@/views/bills/property.vue"),
      meta: {
        title: $t("menus.hsbills_property"),
        showLink: VITE_HIDE_HOME === "true" ? false : true
      }
    },
    {
      path: "/bills/manage_money",
      name: "Bills_Manage_Money",
      component: () => import("@/views/bills/manage_money.vue"),
      meta: {
        title: $t("menus.hsbills_manage_money"),
        showLink: VITE_HIDE_HOME === "true" ? false : true
      }
    }
  ]
} satisfies RouteConfigsTable;
